<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script>
function change_bank(){
	var sy_bankname=$("#sy_bankname").val();
	if($.trim(sy_bankname)==""){parent.layer.msg('银行名称不能为空！', 2, 8);return false;}
	var sy_bankdnumber=$("#sy_bankdnumber").val();
	if($.trim(sy_bankdnumber)==""){parent.layer.msg('银行卡号不能为空！', 2, 8);return false;}
	var sy_bankdeposit=$("#sy_bankdeposit").val();
	if($.trim(sy_bankdeposit)==""){parent.layer.msg('银行卡开户行不能为空！', 2, 8);return false;}
	var sy_bankuser=$("#sy_bankuser").val();
	if($.trim(sy_bankuser)==""){parent.layer.msg('银行卡开户人不能为空！', 2, 8);return false;}
}
$(document).ready(function(){
	$(".input-text").hover(function(){ 
		var msg_id=$(this).attr('id'); 
		var msg=$('#'+msg_id+' + font').html();
		if($.trim(msg)!=''){
			layer.tips(msg, this, {
			guide: 1, 
			style: ['background-color:#5EA7DC; color:#fff;top:-7px', '#5EA7DC']
			}); 
			$(".xubox_layer").addClass("xubox_tips_border");
		} 
	},function(){
		var msg_id=$(this).attr('id');
		var msg=$('#'+msg_id+' + font').html();
		if($.trim(msg)!=''){
			layer.closeAll('tips');
		} 
	});
});
</script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<title>后台管理</title>
</head>
<body class="body_ifm">
<div id="subboxdiv" style="width:100%;height:100%;display:none;position: absolute;"></div>
<div class="infoboxp"> 
<div class="admin_new_tip">
<a href="javascript:;" class="admin_new_tip_close"></a>
<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
<div class="admin_new_tip_list_cont">
<div class="admin_new_tip_list">银行卡设置</div>
</div>
</div>
<div class="clear"></div>


  <div class="tag_box mt10">


      <!--银行设置-->
      <iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
      <form method="post" target="supportiframe" action="" name="config" onsubmit="return change_bank();">
        <table id="alipay" width="100%" class="table_form">
         <tr>
              <td colspan="2" bgcolor="#f0f6fb"><div class="admin_bold">银行卡设置</div></td>
            </tr>
          <tr>
            <th width="140">银行名称: </th>
            <td><input class="input-text" type="text" name="sy_bankname" id="sy_bankname" value="{yun:}$bankone.bank_name{/yun}" size="40" maxlength="255"/>
              <span class="admin_web_tip">如：中国银行</span></td>
          </tr>
          <tr class="admin_table_trbg">
            <th width="140">卡　　号: </th>
            <td><input class="input-text" type="text" name="sy_bankdnumber" id="sy_bankdnumber" value="{yun:}$bankone.bank_number{/yun}" size="40" maxlength="255"/>
              <span class="admin_web_tip">如：6228 4567 8888 8888 888</span></td>
          </tr>
          <tr>
            <th width="140">开 户 行：</th>
            <td><input class="input-text" type="text" name="sy_bankdeposit" id="sy_bankdeposit" value="{yun:}$bankone.bank_address{/yun}" size="40" maxlength="255"/>
             <span class="admin_web_tip"> 如：上海分行徐汇支行田林路分理处</span></td>
          </tr>
          <tr class="admin_table_trbg">
            <th width="140">收款方名称：</th>
            <td><input class="input-text" type="text" name="sy_bankuser" id="sy_bankuser" size="40" value="{yun:}$bankone.name{/yun}" maxlength="255"/>
              <span class="admin_web_tip">如：张三</span></td>
          </tr>
          <tr>
           <th style="border-bottom:none;">&nbsp;</th>
                <td align="left" style="border-bottom:none;">
            <input type="hidden" name="pytoken" id="pytoken"value="{yun:}$pytoken{/yun}">
            {yun:}if $bankone.name{/yun}
              <input name="bankid" type="hidden" value="{yun:}$bankone.id{/yun}">
              <input class="admin_button" type="submit" id="pay_bank" name="pay_bank" value="&nbsp; 修 改 &nbsp;"  />
              &nbsp;&nbsp;
              {yun:}else{/yun}
              <input class="admin_button" type="submit" id="pay_bank" name="pay_bank" value="&nbsp; 添 加 &nbsp;"  />
              &nbsp;&nbsp;
              {yun:}/if{/yun}
              <input class="admin_button" type="reset" name="reset" value="&nbsp; 重 置 &nbsp;" /></td>
          </tr>
        </table>
      </form>
</div>
  <div class="tag_box mt10">
    <table width="100%" class="table_form">
    	<thead>
				<tr class="admin_table_top">
			<th width="22%">银行名称</th>
			<th width="23%">卡号</th>
			<th width="24%">开户行</th>
			<th width="23%">开户人</th>
			<th width="8%" class="admin_table_th_bg">操作</th>
		</tr>
		</thead>
		<tbody>
            {yun:}foreach item=v from=$bankrows{/yun}
            <tr align="center">
              <td class="ud" height="36">{yun:}$v.bank_name{/yun}</td>
              <td class="od">{yun:}$v.bank_number{/yun}</td>
              <td>{yun:}$v.bank_address{/yun}</td>
              <td>{yun:}$v.name{/yun}</td>
              <td><a  href="index.php?m=payconfig&c=bank&id={yun:}$v.id{/yun}">修改</a> <a href="javascript:void(0)" onclick="layer_del('确定删除吗？','index.php?m=payconfig&c=del&id={yun:}$v.id{/yun}')">删除</a></td>
            </tr>
            {yun:}foreachelse{/yun}
            <tr align="center">
              <td class="ud" colspan="5">暂无银行卡</td>
            </tr>
            {yun:}/foreach{/yun}
              </tbody>

          </table>
        </div>
        <style>
		.table_form .admin_table_top th{ background:#f8f8f8;height:30px; text-align:center; font-weight:bold;border-bottom:1px solid #E6E6E6}
		</style>
</body>
</html>